package com.yanqu.road.entity.log.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_feast_tripod_op", desc = "山河乐宴-虚空鼎抽奖", autoSave = true, dataUpload = true, eventName = "shfete_learn", uploadCk = true)
public class LogFeastTripodOp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "虚空鼎等级", dataAttribute = "shfete_inslev")
    private int lv;

    @FieldTypeAnnotation(desc = "抽取前机缘点", dataAttribute = "shfete_befins")
    private int beforeLuckPoint;

    @FieldTypeAnnotation(desc = "消耗机缘点", dataAttribute = "shfete_useins")
    private int consumeLuckPoint;

    @FieldTypeAnnotation(desc = "抽取后机缘点", dataAttribute = "shfete_aftins")
    private int afterLuckPoint;

    @FieldTypeAnnotation(desc = "法宝id", dataAttribute = "shfete_skillget")
    private int equipmentId;

    @FieldTypeAnnotation(desc = "法宝等级", dataAttribute = "shfete_skilllev")
    private int baseLv;

    @FieldTypeAnnotation(desc = "是否回收", dataAttribute = "shfete_isreco")
    private boolean isRecycle;

    @FieldTypeAnnotation(desc = "回收经验", dataAttribute = "shfete_recoexp")
    private int recycleExp;

    public LogFeastTripodOp(long userId, int activityId, int lv, int beforeLuckPoint, int consumeLuckPoint, int afterLuckPoint, int equipmentId, int baseLv, boolean isRecycle, int recycleExp) {
        this.userId = userId;
        this.activityId = activityId;
        this.lv = lv;
        this.consumeLuckPoint = consumeLuckPoint;
        this.equipmentId = equipmentId;
        this.baseLv = baseLv;
        this.isRecycle = isRecycle;
        this.recycleExp = recycleExp;
        this.beforeLuckPoint = beforeLuckPoint;
        this.afterLuckPoint = afterLuckPoint;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
